<template>
	
	<template v-for="item in storeList">
			<InItem :value="item"></InItem>
	</template>
	
</template>

<script setup>
	import {ref,onMounted} from 'vue'
	import InItem from './InItems.vue'
	import {queryIn} from '@/api/instore.js'
	//声明响应式对象
	const storeList=ref([]);
	
	//查询方法 
	async function init(){
		let res=await queryIn(1);
		console.log(res)
		if(res.code==200){
			storeList.value=res.data.list;
		}
	}
	
	onMounted(()=>{
		init();
	});
</script>

<style>
</style>